package com.arqui.admmon_module.server.webservices.eventsmonitor;

public class WebServicesProxy implements com.arqui.admmon_module.server.webservices.eventsmonitor.WebServices_PortType {
  private String _endpoint = null;
  private com.arqui.admmon_module.server.webservices.eventsmonitor.WebServices_PortType webServices_PortType = null;
  
  public WebServicesProxy() {
    _initWebServicesProxy();
  }
  
  public WebServicesProxy(String endpoint) {
    _endpoint = endpoint;
    _initWebServicesProxy();
  }
  
  private void _initWebServicesProxy() {
    try {
      webServices_PortType = (new com.arqui.admmon_module.server.webservices.eventsmonitor.WebServices_ServiceLocator()).getWebServicesPort();
      if (webServices_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)webServices_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)webServices_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (webServices_PortType != null)
      ((javax.xml.rpc.Stub)webServices_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.arqui.admmon_module.server.webservices.eventsmonitor.WebServices_PortType getWebServices_PortType() {
    if (webServices_PortType == null)
      _initWebServicesProxy();
    return webServices_PortType;
  }
  
  public com.arqui.admmon_module.server.webservices.eventsmonitor.File[] getFiles(java.lang.String initDate, java.lang.String endDate) throws java.rmi.RemoteException, com.arqui.admmon_module.server.webservices.eventsmonitor.Exception, com.arqui.admmon_module.server.webservices.eventsmonitor.UnknownHostException, com.arqui.admmon_module.server.webservices.eventsmonitor.NonexistentEntityException{
    if (webServices_PortType == null)
      _initWebServicesProxy();
    return webServices_PortType.getFiles(initDate, endDate);
  }
  
  public com.arqui.admmon_module.server.webservices.eventsmonitor.InvalidTransaction[] getInvalidByCard(java.lang.String initDate, java.lang.String endDate) throws java.rmi.RemoteException, com.arqui.admmon_module.server.webservices.eventsmonitor.Exception, com.arqui.admmon_module.server.webservices.eventsmonitor.UnknownHostException, com.arqui.admmon_module.server.webservices.eventsmonitor.NonexistentEntityException{
    if (webServices_PortType == null)
      _initWebServicesProxy();
    return webServices_PortType.getInvalidByCard(initDate, endDate);
  }
  
  public com.arqui.admmon_module.server.webservices.eventsmonitor.InvalidTransaction[] getNotSyntaxTransaction(java.lang.String initDate, java.lang.String endDate) throws java.rmi.RemoteException, com.arqui.admmon_module.server.webservices.eventsmonitor.Exception, com.arqui.admmon_module.server.webservices.eventsmonitor.UnknownHostException, com.arqui.admmon_module.server.webservices.eventsmonitor.NonexistentEntityException{
    if (webServices_PortType == null)
      _initWebServicesProxy();
    return webServices_PortType.getNotSyntaxTransaction(initDate, endDate);
  }
  
  public com.arqui.admmon_module.server.webservices.eventsmonitor.InvalidTransaction[] getInvalidByIdentification(java.lang.String initDate, java.lang.String endDate) throws java.rmi.RemoteException, com.arqui.admmon_module.server.webservices.eventsmonitor.Exception, com.arqui.admmon_module.server.webservices.eventsmonitor.UnknownHostException, com.arqui.admmon_module.server.webservices.eventsmonitor.NonexistentEntityException{
    if (webServices_PortType == null)
      _initWebServicesProxy();
    return webServices_PortType.getInvalidByIdentification(initDate, endDate);
  }
  
  public com.arqui.admmon_module.server.webservices.eventsmonitor.ExternalService[] getExternalEvents(java.lang.String initDate, java.lang.String endDate) throws java.rmi.RemoteException, com.arqui.admmon_module.server.webservices.eventsmonitor.UnknownHostException, com.arqui.admmon_module.server.webservices.eventsmonitor.NonexistentEntityException{
    if (webServices_PortType == null)
      _initWebServicesProxy();
    return webServices_PortType.getExternalEvents(initDate, endDate);
  }
  
  
}